<template>
  <div class="test-content">
    <MessageArea :list="data.rows" />
  </div>
</template>

<script>
import loading from "@/directive/loading.js";
import mixins from "@/mixins/fetchData.js";
import { getComment } from "@/api/blog.js";
import "@/mock";
import MessageArea from "./index";
export default {
  mixins: [mixins([])],
  components: {
    MessageArea,
  },
  methods: {
    async fetchData() {
      let data = await getComment(1);
      console.log(data);
      return await getComment(1);
    },
  },
  directives: {
    loading: loading,
  },
};
</script>

<style lang="less" scoped>
.test-content {
  overflow-x: hidden;
  overflow-y: scroll;
  width: 100%;
  height: 100%;
  position: fixed;
  background-color: #ddd;
}
</style>